<%@page import="cn.com.entity.News"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body{
color: #03C;
}

</style>
</head>
<body>
<%
News n=(News)session.getAttribute("onenewslist");
if(n!=null){
%>
<form action="updatenewsaction" method="post">
<h2 align="center">修改新闻</h2>
<center>${newsmsg }</center>
<table align="center" width="80%">
	<tr>
	
	<td align="center"><p>新闻标题：</p>
	<input type="hidden" value="<%=n.getNewsid() %>" name="news.newsid"/>
	<textarea rows="3" cols="80" name="news.newstitle"><%=n.getNewstitle() %></textarea></td>
	</tr>

	<tr>
	<td align="center"><p>新闻内容：</p><textarea rows="8" cols="80" name="news.newscontent"><%=n.getNewscontent() %></textarea></td>
	</tr>
	
	<tr>
	<td align="center"><input type="submit"  value=" 保存  " style="font-size:20px; color:#FFF; background-image: url(images/lanseanniu.jpg);"/></td>
	</tr>
</table>


</form>
<%} %>
</body>
</html>